package cn.qzzg.springcloud.user.controller;

import cn.qzzg.springcloud.user.service.inter.UserFeign;
import cn.qzzg.springcloud.user.service.inter.UserServiceInter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class FeignController {

    @Resource
    UserFeign userFeign;

    /**
     * 远程获取用户信息
     * @return
     */
    @GetMapping("/getUserInfo")
    public String getUserInfo(String username, String password){
        return userFeign.getUserInfo(username,password);
    }
}
